/*-------------------------------------------------------------------------
***************** Modification History ***********************************
   @doc
   @module Menus.h - Menu defines |
   @end
   
$Log: /SoftPay/SPK2SIM/Source/Include/Menus.h $ 

**************************************************************************

   Copyright (C) 1999 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/

#ifndef MENUS_H
#define MENUS_H

#define    MENU_ROOT             0
#define    MENU_FUNCTIONS        -1
#define    MENU_TRANSACTIONS     -2
#define    MENU_REPORTS          -3
#define    MENU_SETTINGS         -4
#define    MENU_REVIEWS          -5
#define    MENU_REPRINTS         -6
#define    MENU_EDIT_CLERKS      -7
#define    MENU_REFUNDS          -8
#define    MENU_CLERK_REPORTS    -9
#define    MENU_DOWNLOAD         -10
#define    MENU_SETT_SELECT      -11

#define    MENU_TABS             -13
#define    MENU_ONELINE_TABS     -14
#define    MENU_SERVER           -15
#define    MENU_ONELINE_SETUP    -16
#define    MENU_CLERK            -17
#define    MENU_SHIFT_REPORTS    -18
#define    MENU_TOTAL_REPORTS    -19
#define    MENU_TERM_DOWNLOAD    -20
#define    MENU_CKRDR_DOWNLOAD   -21
#define    MENU_HOST_SPEC1       -22    /* For Host Specific Menus */
#define    MENU_HOST_SPEC2       -23    /*                         */
#define    MENU_HOST_SPEC3       -24    /*                         */
#define    MENU_HOST_SPEC4       -25    /*                         */
#define    MENU_HOST_SPEC5       -26    /*                         */
#define    MENU_LOYALTY          -27
#define    MENU_SPEED_DIAL       -28 
#define    MENU_MAIL             -29
#define    MENU_BALANCE			 -30  //
#define    IMAM_MENU_SETTLE		 -31  //
#define    IMAM_MENU_FUNCTION	 -32  //
#define    IMAM_MENU_OTHER_TRX	 -33  //


#define    ANY_KEY               -1
#define    NO_MENU_TITLE         0
#define    NO_ITEM_TITLE         0

#define    MENU_CONTROL_INDEX    0
#define    ROOT_MENU_INDEX       1
#define    ROOT_MENU_ID          0

#define    ACCESS_FREELY               0
#define    ACCESS_WITH_MANAGER_PASSWORD 1
#define    ACCESS_WITH_SUPER_PASSWORD   2
#define    ACCESS_WITH_CLERK_PASSWORD   3
#define    ACCESS_WITH_CUSTOM			4

#define    NO_PIT_INDEX                -1

#define	   NO_MENU_DISPLAY				2

#define    TRUE  						1
#define    FALSE 						0

#ifdef MENU3200_TXT

	define MENU3200 BIN
	{
	    (short,        miItemKey,         "Event code entry responds to")
	    (long,       mlTitleID,         "Message or Icon #")
	    (long,       mlTranMsg,         "Transaction Title Msg")
	    (long,       mlPlaceHolder,     "")
	    (short,        miPasswordLevel,   "Access Requirements")
	    (short,        miPITIndex,        "Index to PIT password level record")
	    (short,        miReDisplayMenu,   "")
	    (short,        miFuncIndex,       "")
    	    (short,        miSubFuncIndex,    "")
	}

#endif

/* Defines required for Gendata */
/* BRANCH_TBL_ENTRY event defines */
/* keyboard codes */
#define     KEY0        48
#define     KEY1        49
#define     KEY2        50
#define     KEY3        51
#define     KEY4        52
#define     KEY5        53
#define     KEY6        54
#define     KEY7        55
#define     KEY8        56
#define     KEY9        57
#define     KEY_STR     42
#define     KEY_PND     35
#define     KEY_BS      8
#define     KEY_CLR     14
#define     KEY_CR      13
#define     KEY_CANCEL  27
#define     KEY_a       97
#define     KEY_b       98
#define     KEY_c       99
#define     KEY_d       100
#define     KEY_e       1
#define     KEY_f       2
#define     KEY_g       3
#define     KEY_h       4

/* device event codes */
#define     APPL_CARD   256
#define     C1_IN       257
#define     C2_IN       258
#define     MDMIN       260
#define     BARIN       264

/* user event poll codes */
#define     SLOW_POLL_IN    768         
#define     FAST_POLL_IN    1024      

/* Special Event Codes  */
#define     COMMON_FUNC 512	
#define     ENTRY_FUNC  513	
#define     EXIT_FUNC   514
#define     ERROR_FUNC  515
#define     BRANCH_EXIT 999

/*	new event codes for o33xx */
#define		PIPE_IN			2048
#define		SOCKET_IN		2049
#define		C3_IN			2050
#define		C4_IN			2051
#define		C5_IN			2052
#define		ICC1_IN			2053
#define		ICC2_IN			2054
#define		TEST_IN			2055
#define		DEACTIVATE_IN	2056
#define		ACTIVATE_IN		2057
#define     SYSTEM_IN		2058
#define     IDLE_LOOP_IN	2059                             
#define     CANCEL_POLL_IN	2060
#define		UNDEFINED_IN	-999   

#endif // MENUS_H

